<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Apple sign-in</title>
</head>
<body>
<div id="appleid-signin" data-color="black" data-border="true" data-type="sign in" style="height: 50px; width: 100%;"></div>
<script type="text/javascript" src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"></script>
<script type="text/javascript">
    AppleID.auth.init({
        clientId : '[[${client_id}]]',
        scope : 'name email',
        redirectURI : '[[${redirect_uri}]]',
        state : 'test',
        nonce : '[[${nonce}]]',
        usePopup : false
    });
</script>
</body>
</html>